<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Two Way Data Binding</title>
        <script src="http://libs.useso.com/js/angular.js/1.2.9/angular.js" charset="utf-8"></script>
    </head>
    <body ng-app ng-init="firstName='John'; lastName='Doe'">
        <strong>First name: </strong> {{ firstName }} <br>
        <strong>Last name: </strong> <span ng-bind="lastName"></span> <br>
        <br>
        <label>Set the first name: <input type="text" ng-model="firstName"></label>
        <label>Set the last name: <input type="text" ng-model="lastName"></label>
    </body>
</html>
